package com.hhq.demo1.api;

import com.hhq.demo1.config.AppConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>Description: some description </p>
 *
 * @author : xiaodong.yang
 * @date : 2024/4/8 10:26
 */
@RequestMapping(path = "/demo1")
@RestController
public class Demo1Controller {

    @Autowired
    private AppConfig appConfig;

    @GetMapping("/hello")
    public String hello() {
        return appConfig.getName();
    }
}
